package com.bishe.common.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Component
@Aspect
@Slf4j
public class LogAspect {
    @Around("")
    public Object recordLog(ProceedingJoinPoint joinPoint) throws Throwable {
        //调用原始目标方法运行
        Object result = joinPoint.proceed();
        return result;
    }
}
